meson: Only use HarfBuzz fallback when needed
authorChun-wei Fan <fanchunwei@src.gnome.org>
Fri, 12 Apr 2019 10:08:36 +0000 (18:08 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Fri, 12 Apr 2019 10:16:12 +0000 (18:16 +0800)
commit88086ea91aa19dc8b8a20b0e560d593cbd9f45e2
treeef5c8280ef50bc76689ed5f8dbfcfd3420a06087
parent0842d084dd30f578bf22f4b7c591dca3dce64613
meson: Only use HarfBuzz fallback when needed

The current Meson releases have broken CMake support, meaning that it is
likely that HarfBuzz could not be located for Visual Studio builds
unless one handcrafts pkg-config files for it, which is both tedious and
error-prone.

Instead, use the existing mechanism for looking for the HarfBuzz headers
and libraries on Visual Studio first when it could not be found via
dependency(), and then use the fallback if it still could not be found.
meson.build